package com.djakapm.markdown.editor.action;

import com.djakapm.markdown.editor.Application;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class CloseApplicationEvent extends WindowAdapter {
    private Application app;

    public CloseApplicationEvent(Application app){
        this.app = app;
    }

    public void windowClosing(WindowEvent e){
        this.app.exit();
    }
}
